var _timer = 30000;
var _split = 1;
var _id = 0;
var _status = "资料读取中...";

var g_numcolor = [0,1,1,2,2,3,3,1,1,2,2,3,1,1,2,2,3,3,1,1,2,3,3,1,1,2,2,3,3,1,1,2,3,3,1,1,2,2,3,3,1,2,2,3,3,1,1,2,2,3];
var colors = ["","red", "blue", "green"];
var XH = null;
var XH1= null;
if (window.XMLHttpRequest)
{// code for all new browsers
    XH = new XMLHttpRequest();
    XH1 = new XMLHttpRequest();
}
else if (window.ActiveXObject)
{// code for IE5 and IE6
  XH = new ActiveXObject("Microsoft.XMLHTTP");
  XH1 = new ActiveXObject("Microsoft.XMLHTTP");
} else 
  alert("Your browser does not support XMLHTTP.");

var timer_id;
//   Math.round(n) = 去小数取整数，Math.floor(n) = 四舍五入到整数

function getcontent()
{
    XH.open("POST", "op.php?op=xml&fp=snow1_1&id="+_id+"&split="+_split,false); 
    try{XH.send("");return XH.responseText; }catch(E){}
}

function timer()
{
	window.status = _status;
	var i;
	var str = getcontent();
	if (str=="") { alert("Error 1"); }
	if (str=="-1") { location.reload(); }

	var a = str.split("\n");
	show_rate19_01(a[0]);
	show_rate19_02(a[1]);
	show_rate19_03(a[2]);
	show_rate19_04(a[3]);
	show_rate19_05(a[4]);
	show_rate19_06(a[5]);
	show_rate19_07(a[6]);
	show_rate19_08(a[7]);
	show_rate19_09(a[8]);
	show_rate19_10(a[9]);
	show_rate19_11(a[10]);
  show_titleAmu(a[11]);
	window.status = "";
	timer_id = setTimeout("timer()", _timer);
}

function show_rate19_01(str)
{
	var count0 = 0;
	var amount0 = 0;
	var a0 = str.split(",");
	var win = a0[0];
	var i = 0;
	for (i=1; i<3; i++) {
		a00 = a0[i].split("@");
		rate = a00[0];
		count = a00[1]-0;
		amount = a00[2]-0;
		document.all["rate19_"+i+"_01"].innerHTML = rate;
		if (count > 0) {
			document.all["amount19_"+i+"_01"].innerHTML = "<a href=op.php?op=agent&fp=betlist1&dt1="+_open+"&dt2="+_open+"&bettype=19&numbers="+i+"_01>"+Math.floor(amount)+"</a>";
		} else {
			document.all["amount19_"+i+"_01"].innerHTML = Math.floor(amount);
		}
		document.all["chg19_"+i+"_01"].innerHTML = "<input type=button onclick=\"ratediff(19,'"+i+"_01',1)\" value=- class=btnmin>&nbsp;<input type=button onclick=\"ratediff(19,'"+i+"_01',-1)\" value=\"&Phi;\" class=btnplus>";
		win1 = Math.floor(win - a00[3]);
		document.all["win19_"+i+"_01"].innerHTML = win1;
		document.all["win19_"+i+"_01"].className = (win1 < 0 ? "lost" : "win");
		count0+=count;
		amount0+=amount;
	}
	document.all.amount19_01.innerHTML=Math.floor(amount0);
}

function show_rate19_02(str)
{
	var count0 = 0;
	var amount0 = 0;
	var a0 = str.split(",");
	var win = a0[0];
	var i = 0;
	for (i=1; i<3; i++) {
		a00 = a0[i].split("@");
		rate = a00[0];
		count = a00[1]-0;
		amount = a00[2]-0;
		document.all["rate19_"+i+"_02"].innerHTML = rate;
		if (count > 0) {
			document.all["amount19_"+i+"_02"].innerHTML = "<a href=op.php?op=agent&fp=betlist1&dt1="+_open+"&dt2="+_open+"&bettype=19&numbers="+i+"_02>"+Math.floor(amount)+"</a>";
		} else {
			document.all["amount19_"+i+"_02"].innerHTML = Math.floor(amount);
		}
		document.all["chg19_"+i+"_02"].innerHTML = "<input type=button onclick=\"ratediff(19,'"+i+"_02',1)\" value=- class=btnmin>&nbsp;<input type=button onclick=\"ratediff(19,'"+i+"_02',-1)\" value=\"&Phi;\" class=btnplus>";
		win1 = Math.floor(win - a00[3]);
		document.all["win19_"+i+"_02"].innerHTML = win1;
		document.all["win19_"+i+"_02"].className = (win1 < 0 ? "lost" : "win");
		count0+=count;
		amount0+=amount;
	}
	document.all.amount19_02.innerHTML=Math.floor(amount0);
}

function show_rate19_03(str)
{
	var count0 = 0;
	var amount0 = 0;
	var a0 = str.split(",");
	var win = a0[0];
	var i = 0;
	for (i=1; i<3; i++) {
		a00 = a0[i].split("@");
		rate = a00[0];
		count = a00[1]-0;
		amount = a00[2]-0;
		document.all["rate19_"+i+"_03"].innerHTML = rate;
		if (count > 0) {
			document.all["amount19_"+i+"_03"].innerHTML = "<a href=op.php?op=agent&fp=betlist1&dt1="+_open+"&dt2="+_open+"&bettype=19&numbers="+i+"_03>"+Math.floor(amount)+"</a>";
		} else {
			document.all["amount19_"+i+"_03"].innerHTML = Math.floor(amount);
		}
		document.all["chg19_"+i+"_03"].innerHTML = "<input type=button onclick=\"ratediff(19,'"+i+"_03',1)\" value=- class=btnmin>&nbsp;<input type=button onclick=\"ratediff(19,'"+i+"_03',-1)\" value=\"&Phi;\" class=btnplus>";
		win1 = Math.floor(win - a00[3]);
		document.all["win19_"+i+"_03"].innerHTML = win1;
		document.all["win19_"+i+"_03"].className = (win1 < 0 ? "lost" : "win");
		count0+=count;
		amount0+=amount;
	}
	document.all.amount19_03.innerHTML=Math.floor(amount0);
}

function show_rate19_04(str)
{
	var count0 = 0;
	var amount0 = 0;
	var a0 = str.split(",");
	var win = a0[0];
	var i = 0;
	for (i=1; i<3; i++) {
		a00 = a0[i].split("@");
		rate = a00[0];
		count = a00[1]-0;
		amount = a00[2]-0;
		document.all["rate19_"+i+"_04"].innerHTML = rate;
		if (count > 0) {
			document.all["amount19_"+i+"_04"].innerHTML = "<a href=op.php?op=agent&fp=betlist1&dt1="+_open+"&dt2="+_open+"&bettype=19&numbers="+i+"_04>"+Math.floor(amount)+"</a>";
		} else {
			document.all["amount19_"+i+"_04"].innerHTML = Math.floor(amount);
		}
		document.all["chg19_"+i+"_04"].innerHTML = "<input type=button onclick=\"ratediff(19,'"+i+"_04',1)\" value=- class=btnmin>&nbsp;<input type=button onclick=\"ratediff(19,'"+i+"_04',-1)\" value=\"&Phi;\" class=btnplus>";
		win1 = Math.floor(win - a00[3]);
		document.all["win19_"+i+"_04"].innerHTML = win1;
		document.all["win19_"+i+"_04"].className = (win1 < 0 ? "lost" : "win");
		count0+=count;
		amount0+=amount;
	}
	document.all.amount19_04.innerHTML=Math.floor(amount0);
}

function show_rate19_05(str)
{
	var count0 = 0;
	var amount0 = 0;
	var a0 = str.split(",");
	var win = a0[0];
	var i = 0;
	for (i=1; i<3; i++) {
		a00 = a0[i].split("@");
		rate = a00[0];
		count = a00[1]-0;
		amount = a00[2]-0;
		document.all["rate19_"+i+"_05"].innerHTML = rate;
		if (count > 0) {
			document.all["amount19_"+i+"_05"].innerHTML = "<a href=op.php?op=agent&fp=betlist1&dt1="+_open+"&dt2="+_open+"&bettype=19&numbers="+i+"_05>"+Math.floor(amount)+"</a>";
		} else {
			document.all["amount19_"+i+"_05"].innerHTML = Math.floor(amount);
		}
		document.all["chg19_"+i+"_05"].innerHTML = "<input type=button onclick=\"ratediff(19,'"+i+"_05',1)\" value=- class=btnmin>&nbsp;<input type=button onclick=\"ratediff(19,'"+i+"_05',-1)\" value=\"&Phi;\" class=btnplus>";
		win1 = Math.floor(win - a00[3]);
		document.all["win19_"+i+"_05"].innerHTML = win1;
		document.all["win19_"+i+"_05"].className = (win1 < 0 ? "lost" : "win");
		count0+=count;
		amount0+=amount;
	}
	document.all.amount19_05.innerHTML=Math.floor(amount0);
}

function show_rate19_06(str)
{
	var count0 = 0;
	var amount0 = 0;
	var a0 = str.split(",");
	var win = a0[0];
	var i = 0;
	for (i=1; i<3; i++) {
		a00 = a0[i].split("@");
		rate = a00[0];
		count = a00[1]-0;
		amount = a00[2]-0;
		document.all["rate19_"+i+"_06"].innerHTML = rate;
		if (count > 0) {
			document.all["amount19_"+i+"_06"].innerHTML = "<a href=op.php?op=agent&fp=betlist1&dt1="+_open+"&dt2="+_open+"&bettype=19&numbers="+i+"_06>"+Math.floor(amount)+"</a>";
		} else {
			document.all["amount19_"+i+"_06"].innerHTML = Math.floor(amount);
		}
		document.all["chg19_"+i+"_06"].innerHTML = "<input type=button onclick=\"ratediff(19,'"+i+"_06',1)\" value=- class=btnmin>&nbsp;<input type=button onclick=\"ratediff(19,'"+i+"_06',-1)\" value=\"&Phi;\" class=btnplus>";
		win1 = Math.floor(win - a00[3]);
		document.all["win19_"+i+"_06"].innerHTML = win1;
		document.all["win19_"+i+"_06"].className = (win1 < 0 ? "lost" : "win");
		count0+=count;
		amount0+=amount;
	}
	document.all.amount19_06.innerHTML=Math.floor(amount0);
}

function show_rate19_07(str)
{
	var count0 = 0;
	var amount0 = 0;
	var a0 = str.split(",");
	var win = a0[0];
	var i = 0;
	for (i=1; i<3; i++) {
		a00 = a0[i].split("@");
		rate = a00[0];
		count = a00[1]-0;
		amount = a00[2]-0;
		document.all["rate19_"+i+"_07"].innerHTML = rate;
		if (count > 0) {
			document.all["amount19_"+i+"_07"].innerHTML = "<a href=op.php?op=agent&fp=betlist1&dt1="+_open+"&dt2="+_open+"&bettype=19&numbers="+i+"_07>"+Math.floor(amount)+"</a>";
		} else {
			document.all["amount19_"+i+"_07"].innerHTML = Math.floor(amount);
		}
		document.all["chg19_"+i+"_07"].innerHTML = "<input type=button onclick=\"ratediff(19,'"+i+"_07',1)\" value=- class=btnmin>&nbsp;<input type=button onclick=\"ratediff(19,'"+i+"_07',-1)\" value=\"&Phi;\" class=btnplus>";
		win1 = Math.floor(win - a00[3]);
		document.all["win19_"+i+"_07"].innerHTML = win1;
		document.all["win19_"+i+"_07"].className = (win1 < 0 ? "lost" : "win");
		count0+=count;
		amount0+=amount;
	}
	document.all.amount19_07.innerHTML=Math.floor(amount0);
}

function show_rate19_08(str)
{
	var count0 = 0;
	var amount0 = 0;
	var a0 = str.split(",");
	var win = a0[0];
	var i = 0;
	for (i=1; i<3; i++) {
		a00 = a0[i].split("@");
		rate = a00[0];
		count = a00[1]-0;
		amount = a00[2]-0;
		document.all["rate19_"+i+"_08"].innerHTML = rate;
		if (count > 0) {
			document.all["amount19_"+i+"_08"].innerHTML = "<a href=op.php?op=agent&fp=betlist1&dt1="+_open+"&dt2="+_open+"&bettype=19&numbers="+i+"_08>"+Math.floor(amount)+"</a>";
		} else {
			document.all["amount19_"+i+"_08"].innerHTML = Math.floor(amount);
		}
		document.all["chg19_"+i+"_08"].innerHTML = "<input type=button onclick=\"ratediff(19,'"+i+"_08',1)\" value=- class=btnmin>&nbsp;<input type=button onclick=\"ratediff(19,'"+i+"_08',-1)\" value=\"&Phi;\" class=btnplus>";
		win1 = Math.floor(win - a00[3]);
		document.all["win19_"+i+"_08"].innerHTML = win1;
		document.all["win19_"+i+"_08"].className = (win1 < 0 ? "lost" : "win");
		count0+=count;
		amount0+=amount;
	}
	document.all.amount19_08.innerHTML=Math.floor(amount0);
}

function show_rate19_09(str)
{
	var count0 = 0;
	var amount0 = 0;
	var a0 = str.split(",");
	var win = a0[0];
	var i = 0;
	for (i=1; i<3; i++) {
		a00 = a0[i].split("@");
		rate = a00[0];
		count = a00[1]-0;
		amount = a00[2]-0;
		document.all["rate19_"+i+"_09"].innerHTML = rate;
		if (count > 0) {
			document.all["amount19_"+i+"_09"].innerHTML = "<a href=op.php?op=agent&fp=betlist1&dt1="+_open+"&dt2="+_open+"&bettype=19&numbers="+i+"_09>"+Math.floor(amount)+"</a>";
		} else {
			document.all["amount19_"+i+"_09"].innerHTML = Math.floor(amount);
		}
		document.all["chg19_"+i+"_09"].innerHTML = "<input type=button onclick=\"ratediff(19,'"+i+"_09',1)\" value=- class=btnmin>&nbsp;<input type=button onclick=\"ratediff(19,'"+i+"_09',-1)\" value=\"&Phi;\" class=btnplus>";
		win1 = Math.floor(win - a00[3]);
		document.all["win19_"+i+"_09"].innerHTML = win1;
		document.all["win19_"+i+"_09"].className = (win1 < 0 ? "lost" : "win");
		count0+=count;
		amount0+=amount;
	}
	document.all.amount19_09.innerHTML=Math.floor(amount0);
}

function show_rate19_10(str)
{
	var count0 = 0;
	var amount0 = 0;
	var a0 = str.split(",");
	var win = a0[0];
	var i = 0;
	for (i=1; i<3; i++) {
		a00 = a0[i].split("@");
		rate = a00[0];
		count = a00[1]-0;
		amount = a00[2]-0;
		document.all["rate19_"+i+"_10"].innerHTML = rate;
		if (count > 0) {
			document.all["amount19_"+i+"_10"].innerHTML = "<a href=op.php?op=agent&fp=betlist1&dt1="+_open+"&dt2="+_open+"&bettype=19&numbers="+i+"_10>"+Math.floor(amount)+"</a>";
		} else {
			document.all["amount19_"+i+"_10"].innerHTML = Math.floor(amount);
		}
		document.all["chg19_"+i+"_10"].innerHTML = "<input type=button onclick=\"ratediff(19,'"+i+"_10',1)\" value=- class=btnmin>&nbsp;<input type=button onclick=\"ratediff(19,'"+i+"_10',-1)\" value=\"&Phi;\" class=btnplus>";
		win1 = Math.floor(win - a00[3]);
		document.all["win19_"+i+"_10"].innerHTML = win1;
		document.all["win19_"+i+"_10"].className = (win1 < 0 ? "lost" : "win");
		count0+=count;
		amount0+=amount;
	}
	document.all.amount19_10.innerHTML=Math.floor(amount0);
}

function show_rate19_11(str)
{
	var count0 = 0;
	var amount0 = 0;
	var a0 = str.split(",");
	var win = a0[0];
	var i = 0;
	for (i=1; i<3; i++) {
		a00 = a0[i].split("@");
		rate = a00[0];
		count = a00[1]-0;
		amount = a00[2]-0;
		document.all["rate19_"+i+"_11"].innerHTML = rate;
		if (count > 0) {
			document.all["amount19_"+i+"_11"].innerHTML = "<a href=op.php?op=agent&fp=betlist1&dt1="+_open+"&dt2="+_open+"&bettype=19&numbers="+i+"_11>"+Math.floor(amount)+"</a>";
		} else {
			document.all["amount19_"+i+"_11"].innerHTML = Math.floor(amount);
		}
		document.all["chg19_"+i+"_11"].innerHTML = "<input type=button onclick=\"ratediff(19,'"+i+"_11',1)\" value=- class=btnmin>&nbsp;<input type=button onclick=\"ratediff(19,'"+i+"_11',-1)\" value=\"&Phi;\" class=btnplus>";
		win1 = Math.floor(win - a00[3]);
		document.all["win19_"+i+"_11"].innerHTML = win1;
		document.all["win19_"+i+"_11"].className = (win1 < 0 ? "lost" : "win");
		count0+=count;
		amount0+=amount;
	}
	document.all.amount19_11.innerHTML=Math.floor(amount0);
}
function show_titleAmu(str)
{
	var a0 = str.split(",");
	var i = 0;
	var l = a0.length;
	var amu = 0;
	var clr = '';
	var oObj = '';
	for (i=0; i<l; i++) {
		a00 = a0[i].split("@");
		amu = a00[0];
		if(a00[1] > 0){ clr = '#ffff99';  }else{ clr = 'transparent';  }
    oObj = document.getElementById("menuAmu"+i);
    oObj.innerHTML = amu;
    oObj.style.backgroundColor = clr;
	}
}

function gen_rate19_01()
{
	ret = "<table width=100% cellpadding=2 cellspacing=1 border=0 class=table0>"
		+"<tr id=rate0hd class=td0 align=center>"+_tb19_01head+"</tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[1]+"</td><td nowrap id=amount19_1_01></td><td nowrap id=win19_1_01></td><td id=rate19_1_01 class=rate></td><td align=center id=chg19_1_01></td></tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[2]+"</td><td nowrap id=amount19_2_01></td><td nowrap id=win19_2_01></td><td id=rate19_2_01 class=rate></td><td align=center id=chg19_2_01></td></tr>";
	ret += "<tr class=td6 align=right><td class=td0>"+_total+"</td><td id=amount19_01></td><td></td><td></td><td></td></tr>";
	ret += "</table>";
	document.all.div19_01.innerHTML = ret;
}

function gen_rate19_02()
{
	ret = "<table width=100% cellpadding=2 cellspacing=1 border=0 class=table0>"
		+"<tr id=rate0hd class=td0 align=center>"+_tb19_02head+"</tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[1]+"</td><td nowrap id=amount19_1_02></td><td nowrap id=win19_1_02></td><td id=rate19_1_02 class=rate></td><td align=center id=chg19_1_02></td></tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[2]+"</td><td nowrap id=amount19_2_02></td><td nowrap id=win19_2_02></td><td id=rate19_2_02 class=rate></td><td align=center id=chg19_2_02></td></tr>";
	ret += "<tr class=td6 align=right><td class=td0>"+_total+"</td><td id=amount19_02></td><td></td><td></td><td></td></tr>";
	ret += "</table>";
	document.all.div19_02.innerHTML = ret;
}

function gen_rate19_03()
{
	ret = "<table width=100% cellpadding=2 cellspacing=1 border=0 class=table0>"
		+"<tr id=rate0hd class=td0 align=center>"+_tb19_03head+"</tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[1]+"</td><td nowrap id=amount19_1_03></td><td nowrap id=win19_1_03></td><td id=rate19_1_03 class=rate></td><td align=center id=chg19_1_03></td></tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[2]+"</td><td nowrap id=amount19_2_03></td><td nowrap id=win19_2_03></td><td id=rate19_2_03 class=rate></td><td align=center id=chg19_2_03></td></tr>";
	ret += "<tr class=td6 align=right><td class=td0>"+_total+"</td><td id=amount19_03></td><td></td><td></td><td></td></tr>";
	ret += "</table>";
	document.all.div19_03.innerHTML = ret;
}

function gen_rate19_04()
{
	ret = "<table width=100% cellpadding=2 cellspacing=1 border=0 class=table0>"
		+"<tr id=rate0hd class=td0 align=center>"+_tb19_04head+"</tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[1]+"</td><td nowrap id=amount19_1_04></td><td nowrap id=win19_1_04></td><td id=rate19_1_04 class=rate></td><td align=center id=chg19_1_04></td></tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[2]+"</td><td nowrap id=amount19_2_04></td><td nowrap id=win19_2_04></td><td id=rate19_2_04 class=rate></td><td align=center id=chg19_2_04></td></tr>";
	ret += "<tr class=td6 align=right><td class=td0>"+_total+"</td><td id=amount19_04></td><td></td><td></td><td></td></tr>";
	ret += "</table>";
	document.all.div19_04.innerHTML = ret;
}

function gen_rate19_05()
{
	ret = "<table width=100% cellpadding=2 cellspacing=1 border=0 class=table0>"
		+"<tr id=rate0hd class=td0 align=center>"+_tb19_05head+"</tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[1]+"</td><td nowrap id=amount19_1_05></td><td nowrap id=win19_1_05></td><td id=rate19_1_05 class=rate></td><td align=center id=chg19_1_05></td></tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[2]+"</td><td nowrap id=amount19_2_05></td><td nowrap id=win19_2_05></td><td id=rate19_2_05 class=rate></td><td align=center id=chg19_2_05></td></tr>";
	ret += "<tr class=td6 align=right><td class=td0>"+_total+"</td><td id=amount19_05></td><td></td><td></td><td></td></tr>";
	ret += "</table>";
	document.all.div19_05.innerHTML = ret;
}

function gen_rate19_06()
{
	ret = "<table width=100% cellpadding=2 cellspacing=1 border=0 class=table0>"
		+"<tr id=rate0hd class=td0 align=center>"+_tb19_06head+"</tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[1]+"</td><td nowrap id=amount19_1_06></td><td nowrap id=win19_1_06></td><td id=rate19_1_06 class=rate></td><td align=center id=chg19_1_06></td></tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[2]+"</td><td nowrap id=amount19_2_06></td><td nowrap id=win19_2_06></td><td id=rate19_2_06 class=rate></td><td align=center id=chg19_2_06></td></tr>";
	ret += "<tr class=td6 align=right><td class=td0>"+_total+"</td><td id=amount19_06></td><td></td><td></td><td></td></tr>";
	ret += "</table>";
	document.all.div19_06.innerHTML = ret;
}

function gen_rate19_07()
{
	ret = "<table width=100% cellpadding=2 cellspacing=1 border=0 class=table0>"
		+"<tr id=rate0hd class=td0 align=center>"+_tb19_07head+"</tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[1]+"</td><td nowrap id=amount19_1_07></td><td nowrap id=win19_1_07></td><td id=rate19_1_07 class=rate></td><td align=center id=chg19_1_07></td></tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[2]+"</td><td nowrap id=amount19_2_07></td><td nowrap id=win19_2_07></td><td id=rate19_2_07 class=rate></td><td align=center id=chg19_2_07></td></tr>";
	ret += "<tr class=td6 align=right><td class=td0>"+_total+"</td><td id=amount19_07></td><td></td><td></td><td></td></tr>";
	ret += "</table>";
	document.all.div19_07.innerHTML = ret;
}

function gen_rate19_08()
{
	ret = "<table width=100% cellpadding=2 cellspacing=1 border=0 class=table0>"
		+"<tr id=rate0hd class=td0 align=center>"+_tb19_08head+"</tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[1]+"</td><td nowrap id=amount19_1_08></td><td nowrap id=win19_1_08></td><td id=rate19_1_08 class=rate></td><td align=center id=chg19_1_08></td></tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[2]+"</td><td nowrap id=amount19_2_08></td><td nowrap id=win19_2_08></td><td id=rate19_2_08 class=rate></td><td align=center id=chg19_2_08></td></tr>";
	ret += "<tr class=td6 align=right><td class=td0>"+_total+"</td><td id=amount19_08></td><td></td><td></td><td></td></tr>";
	ret += "</table>";
	document.all.div19_08.innerHTML = ret;
}

function gen_rate19_09()
{
	ret = "<table width=100% cellpadding=2 cellspacing=1 border=0 class=table0>"
		+"<tr id=rate0hd class=td0 align=center>"+_tb19_09head+"</tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[1]+"</td><td nowrap id=amount19_1_09></td><td nowrap id=win19_1_09></td><td id=rate19_1_09 class=rate></td><td align=center id=chg19_1_09></td></tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[2]+"</td><td nowrap id=amount19_2_09></td><td nowrap id=win19_2_09></td><td id=rate19_2_09 class=rate></td><td align=center id=chg19_2_09></td></tr>";
	ret += "<tr class=td6 align=right><td class=td0>"+_total+"</td><td id=amount19_09></td><td></td><td></td><td></td></tr>";
	ret += "</table>";
	document.all.div19_09.innerHTML = ret;
}

function gen_rate19_10()
{
	ret = "<table width=100% cellpadding=2 cellspacing=1 border=0 class=table0>"
		+"<tr id=rate0hd class=td0 align=center>"+_tb19_10head+"</tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[1]+"</td><td nowrap id=amount19_1_10></td><td nowrap id=win19_1_10></td><td id=rate19_1_10 class=rate></td><td align=center id=chg19_1_10></td></tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[2]+"</td><td nowrap id=amount19_2_10></td><td nowrap id=win19_2_10></td><td id=rate19_2_10 class=rate></td><td align=center id=chg19_2_10></td></tr>";
	ret += "<tr class=td6 align=right><td class=td0>"+_total+"</td><td id=amount19_10></td><td></td><td></td><td></td></tr>";
	ret += "</table>";
	document.all.div19_10.innerHTML = ret;
}

function gen_rate19_11()
{
	ret = "<table width=100% cellpadding=2 cellspacing=1 border=0 class=table0>"
		+"<tr id=rate0hd class=td0 align=center>"+_tb19_11head+"</tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[1]+"</td><td nowrap id=amount19_1_11></td><td nowrap id=win19_1_11></td><td id=rate19_1_11 class=rate></td><td align=center id=chg19_1_11></td></tr>";
	ret += "<tr class=td2 align=right><td class=td15 align=center>"+_name19[2]+"</td><td nowrap id=amount19_2_11></td><td nowrap id=win19_2_11></td><td id=rate19_2_11 class=rate></td><td align=center id=chg19_2_11></td></tr>";
	ret += "<tr class=td6 align=right><td class=td0>"+_total+"</td><td id=amount19_11></td><td></td><td></td><td></td></tr>";
	ret += "</table>";
	document.all.div19_11.innerHTML = ret;
}

function ratediff(btype, num, rate)
{
	//window.status = "Cange Rate....";
	if (timer_id) clearTimeout(timer_id);
    XH1.open("POST", "op.php?op=subsidary&fp=ratediff&id="+_id+"&bettype="+btype+"&number="+num+"&rate="+rate,false); 
    try{XH1.send("");}catch(E){}
    window.status = "";
    timer();
}

function w(s) {
	document.write(s);
}

function winonload()
{
	gen_rate19_01();
	gen_rate19_02();
	gen_rate19_03();
	gen_rate19_04();
	gen_rate19_05();
	gen_rate19_06();
	gen_rate19_07();
	gen_rate19_08();
	gen_rate19_09();
	gen_rate19_10();
	gen_rate19_11();
	timer();
}

window.onload = winonload;